//
//  HSSFinancialTabBarViewController.m
//  HSSFinancial
//
//  Created by xinqiao on 2017/1/10.
//  Copyright © 2017年 Jon_G. All rights reserved.
//

#import "HSSFinancialTabBarViewController.h"

#import "HSSFMyViewController.h"
#import "HSSFFoundViewController.h"
#import "HSSFFinancialViewController.h"
#import "HSSFHomePageViewController.h"
#import "G_Color.h"

@interface HSSFinancialTabBarViewController ()

@end

@implementation HSSFinancialTabBarViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    [self.tabBar setTintColor:[G_Color colorWithNSString:@"ff5050" alpha:1.0]];
    // 1
    HSSFHomePageViewController *homeVC = [[HSSFHomePageViewController alloc] init];
    homeVC.tabBarItem.title = @"首页";
    homeVC.tabBarItem.image = [UIImage imageNamed:@"HSSF_shouyewei"];
    homeVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"HSSF_shouye"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *naVC1 = [[UINavigationController alloc] initWithRootViewController:homeVC];
    
    //2
    HSSFFinancialViewController *financialVC = [[HSSFFinancialViewController alloc] init];
    financialVC.tabBarItem.title = @"理财";
    financialVC.tabBarItem.image = [UIImage imageNamed:@"HSSF_licaiwei"];
    financialVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"HSSF_licai"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *naVC2 = [[UINavigationController alloc] initWithRootViewController:financialVC];
    //3
    HSSFFoundViewController *foundVC = [[HSSFFoundViewController alloc] init];
    foundVC.tabBarItem.title = @"发现";
    foundVC.tabBarItem.image = [UIImage imageNamed:@"HSSF_faxianwei"];
    foundVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"HSSF_faxian"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *naVC3 = [[UINavigationController alloc] initWithRootViewController:foundVC];
    //4
    HSSFMyViewController *myVC = [[HSSFMyViewController alloc] init];
    myVC.tabBarItem.title = @"我的";
    myVC.tabBarItem.image = [UIImage imageNamed:@"HSSF_gerenwei"];
    myVC.tabBarItem.selectedImage = [[UIImage imageNamed:@"HSSF_geren"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    UINavigationController *naVC4 = [[UINavigationController alloc] initWithRootViewController:myVC];
    self.viewControllers = @[naVC1,naVC2,naVC3,naVC4];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
